package com.system.entity;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.CrossOrigin;

import java.io.Serializable;

@Component
@CrossOrigin
public class Teacher implements Serializable {
    private Long teaId;

    private String teaName;

    private String deptName;

    private String password;

    public Teacher(Long teaId, String teaName, String deptName, String password) {
        this.teaId = teaId;
        this.teaName = teaName;
        this.deptName = deptName;
        this.password = password;
    }

    public Teacher() {
        super();
    }

    public Long getTeaId() {
        return teaId;
    }

    public void setTeaId(Long teaId) {
        this.teaId = teaId;
    }

    public String getTeaName() {
        return teaName;
    }

    public void setTeaName(String teaName) {
        this.teaName = teaName == null ? null : teaName.trim();
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName == null ? null : deptName.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }
}
